"use client"

import Asgard from '@/utils/socket/Asgard'

const Home = () => {
  const asgard = new Asgard('wss://api-smolder.haiyaogame.com/ws');

  asgard.connect()
    .then((socket) => {
      console.log('连接成功：', socket);
    })
    .catch((err) => {
      console.error('连接失败：', err);
    });

  return (
    <>
      <h1>首页</h1>
    </>
  )
}


export default Home